﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VoteShow.aspx.cs" Inherits="vote_VoteShow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>投票</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	
	<link rel="stylesheet" type="text/css" href="../css/stylesheet.css"/>
	<link href="../css/ecrm03.css" rel="stylesheet" type="text/css" />
    <script language="JScript" src="../js/Function.js"></script>
    <script language="JScript" src="../js/myCheck.js"></script>
    <script language="JScript" src="../jquery/126/jquery-1.2.6.js"></script>
    <script type="text/javascript" language="javascript">
     $(document).ready(function(){$.each($(".test"),function(i,n){$(n).animate({ width: $(n).attr('title') + '%'}, 1000); });}
		);
        function showlist(opration,num)
        {
            var urlstring="votelist.aspx";
            $.ajax({
            url:urlstring,
            type:'post',
            dataType:'html',
            data:'&opration='+ opration+"&num="+ num ,
            beforeSend:function()
            {
                
            },
            error:function()
            {
               
            },
            success: function(msg)
            {
                $("#divvote").empty().append(msg);
            }
            });
        }
        function vote(vid)
        {
            var items="";
            $.each($("[@name=" + vid + "][@checked]"),function(i,n){if( $.trim(n.value) != "") items += escape(n.value)+',';});
            if(items=="")
            {
                alert('请选择选项！');
                return;
            }
            var urlstring="votelist.aspx";
            $.ajax({
            url:urlstring,
            type:'post',
            dataType:'html',
            data:'&opration=vote'+ '&vid=' + vid +'&items='+items,
            beforeSend:function()
            {
                
            },
            error:function()
            {
               
            },
            success: function(msg)
            {
                alert('投票成功！');
                location.href=location.href;
            }
            });
        }
       function clearcss()
        {
            document.getElementById ('Td7').className='titletab02';
            document.getElementById ('Td8').className='titletab02';
            document.getElementById ('Td9').className='titletab02';
            document.getElementById ('Td10').className='titletab02';
        }
    </script>
</head>
<body>
    <div>
      <%--   <table width='100%'>
            <tr><td></td></tr>
            <tr>
                <td style="background-color:#0075b0">&nbsp;&nbsp;&nbsp;&nbsp;<span style=" font-family:'\'d3\'d7\'d4\'b2'; color:#FFFFFF; font-size:18pt;"><b>圈儿内</b></span></td>
            </tr>
            <tr><td></td></tr>
        </table>--%>
            <table width =950px align="center">
            <tr>
                <td style="width: 15px; height: 47px; background-color: #ffffff" valign="middle"></td>
                
                <td  style="background-color:#0075B0; height :47px; width: 950px;" valign="middle">
                    <DIV style="text-align: left ; font-family:Arial; text-align:left;" >
                        <span style=" font-family:'Arial Black'; color:#FFFFFF; font-size:16pt;">
                            <b>&nbsp;&nbsp;&nbsp;&nbsp;MagSpace
                                
                            </b>
                        </span>
                     </DIV>
                 </td>
                 
                 <td style="background-color:#0075B0; height :47px; width: 190px;" valign="middle" align="right">
                    <DIV style="text-align: left ; font-family:Arial; text-align:left;" >
                        <span style=" font-family:'Arial Black'; color:#FFFFFF; font-size:16pt;">
                             <span class="pl"><asp:Literal ID="userstatus1" runat="server"></asp:Literal>&nbsp;&nbsp;<asp:Literal ID="userstatus2" runat="server"></asp:Literal></span>
                             </span>
                     </DIV>
                 </td>
                 
                <td style="width: 15px; height: 47px; background-color: #ffffff" valign="middle"></td>
                    
            </tr>
        </table>
        <br />
        
        <table width=900 align="center">
            <tr>
                <td style="text-align:center" id="tab01" class="titletab02"><a href="../index.aspx">首页</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="tab03" class="titletab02"><a href="../my_ecrm.aspx">我的名片夹</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td1" class="titletab02"><a href="../my_givelist.aspx">我的赠刊名录</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td2" class="titletab02"><a href="../my_plan.aspx">我的周计划</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td3" class="titletab02"><a href="../easybbs.aspx">员工交流区</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td4" class="titletab02"><a href="../employee2.aspx">员工联系表</a></td>
                <td class="titletab03">&nbsp;</td>
                 <td style="text-align:center" id="Td6" class="titletab01"><a href="../vote/vote.aspx">投票</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td5" class="titletab02"><a href="../webdisk/default.aspx">网盘</a></td>
                <td class="titletab04">&nbsp;</td>
               
            </tr>
        </table>
        
		<table cellSpacing="0" cellPadding="0" border="0" align="center">
		    <tr>
		        <td style="background-color:White;padding-right: 10px; padding-left: 10px; padding-bottom: 10px; padding-top: 10px;">
		            <table cellSpacing="0" cellPadding="0" width="500" align="center" border="0" style="background-color:White;BORDER-TOP: #ffffff 1px solid;BORDER-LEFT: #ffffff 1px solid;">
		                <tr>
		                    <td style="BORDER-RIGHT: #90b0de 1px solid; BORDER-TOP: #90b0de 1px solid; BORDER-LEFT: #90b0de 1px solid; BORDER-BOTTOM: #90b0de 1px solid">
		                       
		                         <div>
		                             <ul class="gtab"><li id='Li1'><a href="vote.aspx" ><span>投票</span></a></li><li id='i2' class="gtabs"><a href="#" onclick='showlist("created"," top 5");showlist("joined"," top 5");'><span>我的投票</span></a></li><li id='i1'><a href="#" onclick='showlist("latest","")'><span>最近投票</span></a></li><li id='i3'><a href="#" onclick='showlist("hot","")'><span>最热投票</span></a></li></ul>
		                             <%--<table width=900 align="center">
                                        <tr>
                                            <td style="text-align:center" id="Td7" class="titletab01"><a href="Vote.aspx" >投票</a></td>
                                            <td class="titletab03">&nbsp;</td>
                                            <td style="text-align:center" id="Td8" class="titletab02"><a href="#" onclick='clearcss();document.getElementById ("Td8").className="titletab01";showlist("created"," top 5");showlist("joined"," top 5");'>我的投票</a></td>
                                            <td class="titletab03">&nbsp;</td>
                                            <td style="text-align:center" id="Td9" class="titletab02"><a href="#" onclick='clearcss();document.getElementById ("Td9").className="titletab01";showlist("latest","")'>最近投票</a></td>
                                            <td class="titletab03">&nbsp;</td>
                                            <td style="text-align:center" id="Td10" class="titletab02"><a href="#" onclick='clearcss();document.getElementById ("Td10").className="titletab01";showlist("hot","")'>最热投票</a></td>
                                            <td class="titletab04">&nbsp;</td>
                                        </tr>
                                    </table>--%>
		                        </div>
		                         <table width="100%" cellSpacing="0" cellPadding="0" align="center" border="0">
		                            <tr height="30">
		                                <td style="border-bottom: #90b0de 1px solid; font-weight: bold; color: #004499;border-bottom:1px solid silver;">&nbsp;&nbsp;&nbsp;<img src="../images/vote.gif" />投票</td>
		                            </tr>
		                            <tr>
		                                <td align="right"><div class="shortcut"><a href="voteinfo.aspx" class="shortcut-link">发起新投票</a></div></td>
		                            </tr>
		                        </table>
		                        
		                        <div id='divvote'>
		                        <table border='0' width='100%'><tr><td width='10%'></td><td>
                                <asp:Repeater ID='rpitems' runat="server" >
                                    <HeaderTemplate>
                                        <table width='100%'>
                                            <tr><td style="color:Green"><%=title %></td><td></td><td></td></tr>
                                            <tr><td style="color:Silver"><%=desc %></td><td></td><td></td></tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%#  DataBinder.Eval(Container.DataItem, "tr")%>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table >
                                        <br />
                                        <font color='green'>我的答案：</font><hr />
                                        <%=myAnswer%>    
                                    </FooterTemplate>
                                </asp:Repeater>
                                </td><td width='10%'></td></tr></table>
                                </div>
		                    </td>
		                </tr>
		            </table>
		                <div style="border-bottom: darkgray 1px solid;"></div>
                        <span class="bottomfont">SEEC&copy;2008-2009 汽车中国</span>
		        </td>
		    </tr>
		</table>
		
    </div>
	<div id="myhidediv" style="VISIBILITY: hidden;">
	    
	</div>
    
</body>
</html>
